import { Template } from './template';
import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "pagetmpitem" })
export class PageTmpItem extends EntityObjectType<PageTmpItem>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true
    })
    pageId: string;

    @Define.Column({
        DataType: Define.DataType.INT,
        DefaultValue: 0
    })
    index:number;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true
    })
    templateId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        NotAllowNULL: true,
        IsIndex: true
    })
    orgId: string;

    template: Template;
}